package wht.jly.forum.utils.validatecode.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * validate code configuration properties
 *
 * @author lanyangji
 * @date 2019/3/2 17:42
 */
@ConfigurationProperties(prefix = "validate.image.code")
public class ImageValidateCodeProperties {

    /**
     * validate image width,
     * default value is 67
     */
    private Integer width = 67;

    /**
     * validate image height,
     * default value is 23
     */
    private Integer height = 23;

    /**
     * validate code length,
     * default value is 4
     */
    private Integer length = 4;

    /**
     * expire duration,
     * default value is one week
     */
    private Long expireIn = 604800L;

    /**
     * urls to be intercepted,
     * separated by commas.
     */
    private String url = "";

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public Long getExpireIn() {
        return expireIn;
    }

    public void setExpireIn(Long expireIn) {
        this.expireIn = expireIn;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
